package com.squapsource.project_euler;

import java.util.List;

import com.squapsource.project_euler.utils.Fibonacci;

public class Problem2 {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		List<Long> fibonaccis = Fibonacci.getFibonacci(4000000L);
		long sum = 0;
		for (Long fib : fibonaccis) {
			if (fib % 2 == 0) {
				sum += fib;
			}
		}
		System.out.println(sum);
	}
}
